package com.youkeyi.ddy.cloud.common.api.application.system.corp;

import com.youkeyi.ddy.cloud.common.api.application.system.corp.dto.SystemCorpListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.corp.dto.SystemCorpUserListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.corp.param.*;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * SystemAuthCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/system/corp/fallback")
public class SystemCorpCloudServiceFallback implements SystemCorpCloudService {

    @Override
    public SystemCorpListCloudDto list(SystemCorpListCloudParam param) {
        return new SystemCorpListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public SystemCorpListCloudDto financeList() {
        return new SystemCorpListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(SystemCorpCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(SystemCorpUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(SystemCorpDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public SystemCorpListCloudDto hrMappingList(SystemHrCorpMappingListCloudParam param) {
        return new SystemCorpListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent hrMappingUpdate(SystemHrCorpMappingUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }


    @Override
    public SystemCorpUserListCloudDto userList(SystemCorpListCloudParam param) {
        return new SystemCorpUserListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public SystemCorpUserListCloudDto mappingCorpUserList(SystemCorpListCloudParam param) {
        return new SystemCorpUserListCloudDto(Boolean.FALSE, "服务不可用");
    }
}
